const transactionColumns = {
  intention: [
    {
      title: '发起时间',
      dataIndex: 'created_at',
      scopedSlots: {
        filterDropdown: 'filterRange'
      },
      sorter: true
    },
    {
      title: '顾问',
      dataIndex: 'username',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '商标名称',
      dataIndex: 'tm_name',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '商标类别',
      dataIndex: 'category',
      scopedSlots: {
        customRender: 'category',
        filterDropdown: 'filterCategory'
      }
    },
    {
      title: '注册号',
      dataIndex: 'tm_reg_no',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '国家',
      dataIndex: 'region',
      scopedSlots: {
        customRender: 'region',
        filterDropdown: 'filterRegion'
      }
    },
    {
      title: '进展状态',
      dataIndex: 'status',
      scopedSlots: {
        customRender: 'status',
        filterDropdown: 'filterStatus'
      }
    }
  ],
  purchase: [
    {
      title: '顾问',
      dataIndex: 'username',
      scopedSlots: { customRender: 'username' }
    },
    {
      title: '关键字/词',
      dataIndex: 'tm_name',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '商标类别',
      dataIndex: 'category',
      scopedSlots: {
        customRender: 'category',
        filterDropdown: 'filterCategory'
      }
    },
    {
      title: '国家',
      dataIndex: 'region',
      scopedSlots: {
        customRender: 'region',
        filterDropdown: 'filterRegion'
      }
    },
    {
      title: '采购数量',
      dataIndex: 'purchase_num'
    },
    {
      title: '顾问报价',
      dataIndex: 'offer_start',
      scopedSlots: { customRender: 'offer_start' },
      sorter: true
    },
    // {
    //   title: '官费',
    //   dataIndex: 'price1'
    // },
    {
      title: '是否包含转让费',
      dataIndex: 'is_tf_fee',
      scopedSlots: { customRender: 'is_tf_fee' },
      filters: [
        {
          text: '包含',
          value: '1'
        },
        {
          text: '不包含',
          value: '2'
        }
      ],
      filterMultiple: false,
      onFilter: (value, record) => record.is_tf_fee.indexOf(value) === 0
    },
    {
      title: '类似群组',
      dataIndex: 'groups',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '进展状态',
      dataIndex: 'status',
      scopedSlots: { customRender: 'status' },
      filters: [
        {
          text: '待审核',
          value: '10'
        },
        {
          text: '流程待确认',
          value: '24'
        },
        {
          text: '流程采购成功',
          value: '26'
        }
      ],
      filterMultiple: false,
      onFilter: (value, record) => record.status.indexOf(value) === 0
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' },
      width: '150px'
    }
  ],
  wareroom: [
    {
      title: '来源类型',
      dataIndex: 'is_company',
      scopedSlots: {
        customRender: 'is_company',
        filterDropdown: 'filterCompany'
      }
    },
    {
      title: '商标名称',
      dataIndex: 'tm_name',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '商标类型',
      dataIndex: 'tm_type',
      scopedSlots: {
        customRender: 'tm_type',
        filterDropdown: 'filterType'
      }
    },
    {
      title: '商标类别',
      dataIndex: 'category',
      scopedSlots: {
        customRender: 'category',
        filterDropdown: 'filterCategory'
      }
    },
    {
      title: '官费',
      dataIndex: 'inward_official_fee',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '下证时间',
      dataIndex: 'end_time',
      scopedSlots: {
        filterDropdown: 'filterRange1'
      }
    },
    // {
    //   title: '上传人',
    //   dataIndex: 'username',
    //   scopedSlots: {
    //     filterDropdown: 'filterDropdown'
    //   }
    // },
    {
      title: '联系人电话',
      dataIndex: 'owner_phone',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '联系人微信',
      dataIndex: 'owner_wechat',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '状态',
      dataIndex: 'tm_status',
      scopedSlots: {
        customRender: 'tm_status',
        filterDropdown: 'filterStatus'
      }
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ]
}

export default transactionColumns
